package com.kqb.controller;

import com.kqb.common.domain.AjaxResult;
import com.kqb.pojo.ErpProductInquirySheet;
import com.kqb.pojo.Product;
import com.kqb.service.IErpProductInquiryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杉果树皮
 * @date 2025/3/4 19:43
 * @description:
 */
@Api(tags = "商品询价")
@RestController
@RequestMapping("/api")
public class ErpProductInquiryController {

    @Autowired
    private IErpProductInquiryService iErpProductInquiryService;


    @PostMapping("/productInquiry")
    @ApiOperation("添加询价单")
    public AjaxResult save(@RequestBody ErpProductInquirySheet erpProductInquirySheet) {
        return iErpProductInquiryService.save(erpProductInquirySheet);
    }


}
